home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-10-23 | 949 b | 18 lines | [TEXT/MPS ] |
- #!./perl
-
- # $Header: magic.t,v 4.0 91/03/20 01:53:35 lwall Locked $
-
- $| = 1; # command buffering
-
- print "1..5\n";
-
- eval '$ENV{"foo"} = "hi there";'; # check that ENV is inited inside eval
- if (`echo \$foo` eq "hi there\n") {print "ok 1\n";} else {print "not ok 1\n";}
-
- unlink 'ajslkdfpqjsjfk';
- $! = 0;
- open(foo,'ajslkdfpqjsjfk');
- if ($! == 2) {print "ok 2\n";} else {print "not ok 2\n";}
-
- # the next tests are embedded inside system simply because sh spits out
- # a newline onto stderr when a child process kills